﻿using System;
using System.Data;
using System.Collections.Generic;

using Com.Framework.Data;
using Com.Library.DB;

namespace Com.Library.DB.Board
{
    public class ArticleGetList : DBDataReader<ArticleEntity, DataEntity>
    {
        public ArticleGetList()
            : base(new ConnectionString(), "TSP_Article_GetList")
        {
        }

        protected override void ParameterInitialize()
        {
            AddParameter("n1BoardSN", SqlDbType.TinyInt, 1, SqlDataInOut.Input);
			AddParameter("strTitle_search", SqlDbType.NVarChar, 400, SqlDataInOut.Input);
			AddParameter("n4CategoryNo", SqlDbType.Int, 4, SqlDataInOut.Input);
            AddParameter("PageNo", SqlDbType.Int, 4, SqlDataInOut.Input);
            AddParameter("PageSize", SqlDbType.TinyInt, 1, SqlDataInOut.Input);
            AddParameter("CntRow", SqlDbType.Int, 4, SqlDataInOut.Output);
            AddParameter("CntTotal", SqlDbType.Int, 4, SqlDataInOut.Output);
        }
    }
}